<?php
//No direct access
defined('_JEXEC') or die('Restricted access');
?>
<div id="ownservices">
 	<div id="mainmenuownservice"><?php echo MenuHelper::nav(); ?></div>
	<div id="mainownservice">
		<h3><?php echo $this->params->get('page_title'); ?></h3>
		<hr />
		<!-- toolbar -->
		<div class="clear"> </div>
		<form action="<?php echo JRoute::_('index.php?option=com_ownservice'); ?>" method="post" name="adminForm" id="adminForm" class="form-validate">
			<table class="admintable" width="100%">
				<tr>
					<td class="key"><?php echo JText::_('OWNSERVICE_LEVEL_NAME'); ?> <span class="red">*</span> :</td>
					<td>
						<?php echo OwnserviceHelper::buildlevelsselect('level_id', $this->row->level_id, true, 'class="inputbox required"'); ?>
					</td>
				</tr>
				<tr>
					<td class="key"><?php echo JText::_('OWNSERVICE_CONDITION'); ?> <span class="red">*</span> :</td>
					<td>
						<input type="text" name="condition" value="<?php echo $this->row->condition; ?>" size="15" class="inputbox required" /> AUD
					</td>
				</tr>
				<tr>
					<td class="key"><?php echo JText::_('OWNSERVICE_POINT_EARN'); ?> <span class="red">*</span> :</td>
					<td>
						<input type="text" name="pointearn" value="<?php echo $this->row->pointearn; ?>" size="15" class="inputbox required" />
					</td>
				</tr>
				<tr>
					<td colspan="2" align="center"><hr /></td>
				</tr>
				<tr>
					<td colspan="2" align="center">
					<input type="submit" name="save" value="<?php echo JText::_('OWNSERVICE_SAVE'); ?>" class="validate" />
					<input type="button" name="cancel" value="<?php echo JText::_('OWNSERVICE_CANCEL'); ?>" onClick="javascript: submitbutton('cancel')" />
					</td>
				</tr>
			</table>
			<div>
				<input type="hidden" name="id" value="<?php echo $this->row->id; ?>" />
				<input type="hidden" name="option" value="com_ownservice" />
				<input type="hidden" name="task" value="save" />
				<input type="hidden" name="Itemid" value="<?php echo JRequest::getVar('Itemid'); ?>" />
				<input type="hidden" name="controller" value="point" />
				<input type="hidden" name="view" value="point" />
				<?php echo JHTML::_( 'form.token' ); ?>
			</div>
		</form>
	</div>
</div>